package com.wdf.service.impl;

import com.wdf.mapper.OperationLogMapper;
import com.wdf.pojo.OperationLog;
import com.wdf.service.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OperationLogServiceImpl implements OperationLogService {
    @Autowired
    private OperationLogMapper operationLogMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public void insertLog(OperationLog operationLog) {
        operationLogMapper.insert(operationLog);
    }
}
